<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Rollbacks all add/deletes made to the index since the last commit</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="solrclient.request.html">SolrClient::request</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="solrclient.setresponsewriter.html">SolrClient::setResponseWriter</a></div>
 <div class="up"><a href="class.solrclient.html">SolrClient</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="solrclient.rollback" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SolrClient::rollback</h1>
  <p class="verinfo">(PECL solr &gt;= 0.9.2)</p><p class="refpurpose"><span class="refname">SolrClient::rollback</span> &mdash; <span class="dc-title">Rollbacks all add/deletes made to the index since the last commit</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-solrclient.rollback-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><a href="class.solrupdateresponse.html" class="type SolrUpdateResponse">SolrUpdateResponse</a></span> <span class="methodname"><strong>SolrClient::rollback</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   Rollbacks all add/deletes made to the index since the last commit. It neither calls any event listeners nor creates a new searcher.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-solrclient.rollback-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-solrclient.rollback-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns a SolrUpdateResponse on success or throws a SolrClientException on failure.
  </p>
 </div>

 
 <div class="refsect1 seealso" id="refsect1-solrclient.rollback-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="solrclient.commit.html" class="methodname" rel="rdfs-seeAlso">SolrClient::commit()</a> - Finalizes all add/deletes made to the index</span></li>
    <li class="member"><span class="methodname"><a href="solrclient.optimize.html" class="methodname" rel="rdfs-seeAlso">SolrClient::optimize()</a> - Defragments the index</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="solrclient.request.html">SolrClient::request</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="solrclient.setresponsewriter.html">SolrClient::setResponseWriter</a></div>
 <div class="up"><a href="class.solrclient.html">SolrClient</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
